using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.SceneManagement;
#endif
using UnityEngine;

// Menues customization tutorial
// https://hugecalf-studios.github.io/unity-lessons/lessons/editor/menuitem/#:~:text=To%20disable%20a%20menu%20item,return%20false%20from%20this%20method.

namespace Watermelon
{
    public static class ActionsMenu
    {
#if UNITY_EDITOR

        #region Save Management

        [MenuItem("Tools/Remove Save", priority = 1)]
        private static void RemoveSave()
        {
            PlayerPrefs.DeleteAll();
            SaveController.DeleteSaveFile();
        }

        // [MenuItem("Actions/Remove Save", true)]
        // private static bool RemoveSaveValidation()
        // {
        //     return !Application.isPlaying;
        // }

        #endregion

#endif
    }
}